var pNav = 1;
var vNav = 1;
var effect = false;
function HscrollER(content,container,numPerPage,width,space,left){
	var length = $('#'+content+' ul').length;		
	var W = length * width;		
	var l = $('#'+content).position().left;	
	var w = numPerPage * width;//$('#'+container).width();
	if(effect == false){				
		if(l<left && space == 'left'){		
			var ht = l + w;		
			if(ht > left){
				ht = left;
			}
			effect = true;			
			$('#'+content).animate({'left':ht},500,function(){effect = false;});		
		}else if(space == 'right'){		
			var ht = w - l;			
			if((W - left) > ht){				
				if((W - w) < ht){					
					ht = W - w - left;					
				}			
				effect = true;
				$('#'+content).animate({'left': -ht},500,function(){effect = false;});		
			}
		}
	}
	if(l <= left && space != 'left' && space != 'right'){
		var ht = left - w;	
		$('#'+content).animate({'left':ht},500);
	}
}
